package com.liu;

public class Main {
    public static void main(String[] args) {

        XmlApplicationContext context = new XmlApplicationContext("spring-ioc.xml");

        A a = (A) context.getBean("a");
        B b = (B) context.getBean("b");
        C c = (C) context.getBean("c");

    }
}
